/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.client2server;

/**
 *
 * @author ChengJiLi
 */
import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;

public class SimpleDataMsg
{

  @Protobuf
  private int intValue;

  @Protobuf
  private double doubleValue;

  @Protobuf
  private long longValue;

  @Protobuf
  private float floatValue;

  @Protobuf
  private Boolean boolValue;

  @Protobuf
  private Enum enumValue;

  public byte[] EnCode(SimpleDataMsg msg)
    throws IOException
  {
    Codec Lcode = ProtobufProxy.create(SimpleDataMsg.class);
    return Lcode.encode(msg);
  }

  public SimpleDataMsg DeCode(byte[] data) throws IOException {
    Codec Lcode = ProtobufProxy.create(SimpleDataMsg.class);
    return (SimpleDataMsg)Lcode.decode(data);
  }

  public int getIntValue()
  {
    return this.intValue;
  }

  public void setIntValue(int intValue)
  {
    this.intValue = intValue;
  }

  public double getDoubleValue()
  {
    return this.doubleValue;
  }

  public void setDoubleValue(double doubleValue)
  {
    this.doubleValue = doubleValue;
  }

  public long getLongValue()
  {
    return this.longValue;
  }

  public void setLongValue(long longValue)
  {
    this.longValue = longValue;
  }

  public float getFloatValue()
  {
    return this.floatValue;
  }

  public void setFloatValue(float floatValue)
  {
    this.floatValue = floatValue;
  }

  public Boolean getBoolValue()
  {
    return this.boolValue;
  }

  public void setBoolValue(Boolean boolValue)
  {
    this.boolValue = boolValue;
  }

  public Enum getEnumValue()
  {
    return this.enumValue;
  }

  public void setEnumValue(Enum enumValue)
  {
    this.enumValue = enumValue;
  }
}
